Skip to content

Conversation

@dol
Copy link
Contributor

@dol dol commented Oct 25, 2025

Description:

According to https://maven.apache.org/pom.html#SCM the scm.url should be a publicly browsable repository.
Replaced git URI with URL to project page on Github.

Added issueManagement and ciManagement information to the scm section.

Took inspiration from https://central.sonatype.com/artifact/org.apache.maven/maven/4.0.0-rc-4 and their pom.xml.

image

The link on https://central.sonatype.com/artifact/io.opentelemetry.contrib/opentelemetry-cel-sampler/1.51.0-alpha ends up in a 404.

image

Before the change

image

After the change

The new pom.xml would look like this. Generated with ./gradlew clean publishToMavenLocal.
The scm.url points to the release version of the source code.

image

@dol dol requested a review from a team as a code owner October 25, 2025 14:44
@trask
Copy link
Member

trask commented Oct 25, 2025

makes sense to me 👍

The new pom.xml would look like this. Generated with ./gradlew clean publishToMavenLocal. The scm.url points to the release version of the source code.

image

this repos's tags don't have -alpha and start with v, e.g. https://github.com/open-telemetry/opentelemetry-java-contrib/tree/v1.51.0

According to https://maven.apache.org/pom.html#SCM the `scm.url` should
be a publicly browsable repository.
Replaced git URI with URL to project page on Github.

Added `issueManagement` and `ciManagement` information to the scm
section.
@dol dol force-pushed the chore/update-scm-url branch from c296ad2 to 36435d4 Compare October 25, 2025 20:42
@dol
Copy link
Contributor Author

dol commented Oct 25, 2025

makes sense to me 👍

The new pom.xml would look like this. Generated with ./gradlew clean publishToMavenLocal. The scm.url points to the release version of the source code.

this repos's tags don't have -alpha and start with v, e.g. https://github.com/open-telemetry/opentelemetry-java-contrib/tree/v1.51.0

Good point. The new approach will reference the stableVersion from the version.gradle.kts. Emulated a new release locally by setting stableVersion = 1.52.0.

image

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@open-telemetry/java-approvers @open-telemetry/java-instrumentation-approvers if this looks good, I'll port to the other Java repos after merging

Comment on lines +60 to +61
tag.set(tagVersion)
url.set("https://github.com/open-telemetry/opentelemetry-java-contrib/tree/${tagVersion}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these probably aren't correct for snapshot builds, does that matter?

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Having a working link on central would be nice indeed.

To @laurit 's question about snapshot builds -- I think it's fine if it's not accurate for snapshots in the short term. The snapshots aren't even browsable, and the chances of someone using a url from a downloaded pom.xml I think are minimal. If browsing ever comes back for snapshots, we can circle back then.

@@ -1,5 +1,6 @@
val stableVersion = "1.52.0-SNAPSHOT"
val alphaVersion = "1.52.0-alpha-SNAPSHOT"
val tagVersion by extra { "v$stableVersion" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not make this a local variable if its only used in otel.publish-conventions.gradle.kts?

Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants